import redis

from database import HOST

redis_con = redis.Redis(
    host= HOST,
    password='centros790623',
    port=26379,
    db=0
)

if __name__ == '__main__':
    redis_con.lpush('name','centros')
    name = redis_con.rpop('name')
    print(name)